<h3>By {{ title }}</h3>
{% with choices.0 as all_choice %}
<form method="GET" action=".">
    <div>
        {% for k, v in all_choice.query_parts %}
            <input type="hidden" name="{{ k }}" value="{{ v }}" />
        {% endfor %}
    </div>
    <ul>
        <li {% if all_choice.selected %}class="selected"{% endif %}>
            <a href="{{ all_choice.query_string }}">All</a>
        </li>
        <li {% if not all_choice.selected %}class="selected"{% endif %}>
            <input type="number"
                   min="0"
                   value="{{ spec.value|default_if_none:'' }}"
                   name="{{ spec.parameter_name }}"
                   id="id_{{ spec.parameter_name}}" />
        </li>
        <li>
            <input type="submit" value="Submit" />
        </li>
    </ul>
</form>
{% endwith %}
